﻿function __getKeyMapIds(category, keyId) {
	var keyMapIdsArr = new Array();
	for (var onec in allDicMap) {
		if (onec == category) {
			for (var one in allDicMap[onec]) {
				try {
				
					var keyIdArr = keyId.toString().split(',');
					var keyMapIds = null;
					//console.log("keyIdArr:"+keyIdArr);
					for(var id in keyIdArr){
						//console.log('keyId:'+allDicMap[onec][one].keyId);
						if (allDicMap[onec][one].keyId == keyIdArr[id]){
							//console.log('执行了...');
							if(keyMapIds == null){
								keyMapIds = allDicMap[onec][one].keyMapIds;
							}else{
								keyMapIds.concat(',').concat(allDicMap[onec][one].keyMapIds);
							}
							//concat
							//keyMapIds += allDicMap[onec][one].keyMapIds;
						}
					}
					
				} catch (e) {
					console.log('报错了.');
				}
				if(keyMapIds){
					keyMapIdsArr = keyMapIds.split(',');
				}
				
			}
		}
	}
	return keyMapIdsArr;
}
